
interface IShape{
    void draw();
}

class Rect implements IShape{
    @Override
    public void draw() {
        System.out.println("打印矩形！");
    }
}

class Circle implements IShape{
    @Override
    public void draw() {
        System.out.println("打印圆形！");
    }
}

class Flower implements IShape{
    @Override
    public void draw() {
        System.out.println("打印❀！");
    }
}

public class Test {
    public static void drawMap(IShape iShape){
        iShape.draw();
    }

    public static void main(String[] args) {
        drawMap(new Rect());
        drawMap(new Circle());
        drawMap(new Flower());
    }

}
